package cn.t11.dm.controller;

import cn.t11.dm.user.entity.DmUser;
import cn.t11.dm.user.service.IDmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DmUserController {

    @Autowired
    private IDmUserService iDmUserService;

    @PostMapping("/user/api/p/login")
    public DmUser getDmUserBy(@RequestBody DmUser dmUser){
        return iDmUserService.getDmUserBy(dmUser);
    }
}
